package etc.spec.ytt.week5;

public class Dog extends Mammal{
    public String kind;
    public Dog(){}
    public Dog(String name,String gender,int age,String food,String kind){
        this.name=name;
        this.gender=gender;
        this.age=age;
        this.food=food;
        this.kind=kind;
    }
    public void yell(){
        System.out.println("i will yell when i was happy");
    }
    public void find(){
        System.out.println("i am glad to find your thing");
    }
    public String eat(){
        return "骨头";
    }
    public static void main(String[] args){

        Dog dog = new Dog("小小","女",2,"骨头","泰迪");

        System.out.println(dog .eat());

    }
}
